
package xiaogang.enif.net;

import java.util.ArrayList;
import java.util.concurrent.RejectedExecutionException;

import org.apache.http.message.BasicNameValuePair;

import xiaogang.enif.net.WSTask.TaskListener;
import android.content.Context;

public class WSAPI {
    private WSAPI() {

    }

    public static void execute(Context context, TaskListener listener, int action,
            ArrayList<BasicNameValuePair> vp) {
        try {
            new WSTask(context, listener, action, vp).execute();
        } catch (RejectedExecutionException e) {
            // do nothing, just keep not crashing.
        }
    }
}
